package com.easygo.client;


import com.xuexi.easygo.pojo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "easygo-goods-service")
public interface GoodClient {

    /*
      * 查询所有的上架的商品数据
      */
    @RequestMapping("goods_getGoods")
    List<Goods> getGoods(@RequestParam(value = "is_marketable") Integer is_marketable);
}